package cn.example.vip.mall.search.feign;

import cn.example.vip.mall.search.entity.SeckillGoodsEs;
import cn.example.vip.mall.util.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mall-search", path = "/seckill/goods", contextId = "mall-search-elasticsearch-seckill-goods")
public interface SeckillGoodsSearchFeign {
	/**
	 * 将秒杀商品导入索引库
	 * @param seckillGoodsEs
	 * @return
	 */
	@PostMapping("/import")
	RespResult add(@RequestBody SeckillGoodsEs seckillGoodsEs);
	
}
